package collection;

import java.util.ArrayList;
import java.util.Collection;

/**
 * 泛型类集合演示
 */
public class CollectionDemo5 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        c.add("100");
        // c.add(100); //编译错误, 123不是String类型
    }
}
